<!--参数设置-->
<p class="mt15 lh30">短信验证：</p>
<div class="border p15">
    <table width="100%">
        <tbody>
        <tr>
            <td align="left" class="form-cell w150 pt6 pl10">客户提交信息是否启用：</td>
            <td>
                <label class="checkbox">
                    <input type="checkbox" id="cb1" name="cb1" ng-checked="smsEnable" ng-model="smsEnable">
                    <span>启用</span>
                </label>
            </td>
        </tr>
        <tr ng-cloak ng-show="smsEnable">
            <td align="left" class="form-cell w150 pt16 pl15">短信测试：</td>
            <td class="pt12">
                <input type="text" class="input-text fl mr5 w310" ng-change="validRegisterMobile()" ng-model="register_mobile" />
                <span class="fl">
                    <a href="javascript:;" class="btn" ng-disabled="!registerMobileValid" ng-click="sendRegisterSMS()">发送短信</a>
                </span>
            </td>
        </tr>
        <tr>
            <td align="left" class="form-cell w150 pt16 pl15">忘记密码短信测试：</td>
            <td class="pt12">
                <input type="text" class="input-text fl mr5 w310" ng-change="validForgetMobile()" ng-model="forget_mobile" />
                <span class="fl">
                    <a href="javascript:;" class="btn" ng-disabled="!forgetMobileValid" ng-click="sendForgetSMS()">发送短信</a>
                </span>
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="pt12">
                <a href="javascript:;" class="btn fr" ng-click="updateSMSConfig()">保存设置</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div class="mt15 clearfix">
    <span class="fl">拓客活动类型：</span>
    <div class="fr btn-group">
        <a href="javascript:;" class="btn btn-yellow"
            ui-dialog="新增选项"
            ui-dialog-cache="false"
            ui-dialog-ok="createParam($data,$dialog)"
            ui-dialog-url="param/dialog/edit.html"><i class="btn-icon-add"></i>新增选项</a>
    </div>
</div>
<div class="sheet">
    <table width="100%" class="mt5">
        <thead>
        <tr>
            <th height="34" width="60">序号</th>
            <th>选项名称</th>
            <th>状态</th>
            <!--<th>是否默认</th>-->
            <th width="250">操作</th>
        </tr>
        </thead>
        <tbody ng-if="loading">
        <tr height="60">
            <td colspan="5">加载中...</td>
        </tr>
        </tbody>
        <!--<tbody ng-if="!loading && (!list || list.length==0)">
        <tr height="60">
            <td colspan="5">无数据</td>
        </tr>
        </tbody>-->

        <tbody>
            <tr ng-repeat="param in paramList">
                <td height="34">{{$index + 1}}</td>
                <td>{{param.type_name}}</td>
                <td><i class="c-blue">{{param.is_disable == "0" ? "已启用":"已禁用"}}</i></td>
                <!--<td>
                    <i class="icon-op icon-op-check" ng-if="param.is_default == 1">&nbsp;</i>
                    <a href="javascript:;" class="c-blue" ng-if="param.is_default != 1" ng-click="setDefaultParam(param)">设为默认</a>
                </td>-->
                <td style="text-align: left;">
                    <a href="javascript:;" title="编辑" style="margin-left: 40px;" class="mr15" 
                        ui-dialog="编辑选项"
                        ui-dialog-cache="false"
                        ui-dialog-data="param"
                        ui-dialog-ok="updateParam($data,$dialog)"
                        ui-dialog-url="param/dialog/edit.html">
                        <i class="icon-op icon-op-edit">&nbsp;</i>
                    </a>
                    <a href="javascript:;" title="禁用" class="mr15" ng-if="param.is_disable == 0"
                        ui-confirm="确定禁用吗？"
                        ui-confirm-ok="disableParam(param)">
                        <i class="icon-op icon-op-stop">&nbsp;</i>
                    </a>
                    <a href="javascript:;" title="启用" class="mr15" ng-if="param.is_disable == 1"
                        ng-click="enableParam(param)">
                        <i class="icon-op icon-op-star">&nbsp;</i>
                    </a>
                    <a href="javascript:;" title="删除" class="mr15"
                        ui-confirm="确认要删除该活动类型吗？"
                        ui-confirm-ok="deleteParam(param)">
                        <i class="icon-op icon-op-del">&nbsp;</i>
                    </a>
                    <a href="javascript:;" title="上移" ng-show="!$first" class="mr15" ng-click="moveupParam(param)">
                        <i class="icon-op icon-op-up">&nbsp;</i>
                    </a>
                    <a href="javascript:;" title="下移" ng-show="!$last" class="mr15" ng-click="movedownParam(param)">
                        <i class="icon-op icon-op-down">&nbsp;</i>
                    </a>
                </td>
            </tr>
        </tbody>
    </table>
</div>